package edu.uts.reekie.designer.figures;

import org.eclipse.draw2d.AbstractLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.StackLayout;
import org.eclipse.draw2d.geometry.Dimension;

/*
 * Same as StackLayout, but there is no preferred size for the container.
 * It's up to the owner of the container Figure (whoever that is) to set the size of the container
 * 
 */
public class FixedSizeStackLayout extends StackLayout {

	protected Dimension calculatePreferredSize(IFigure container, int wHint,
			int hHint) {
		// there is no preferred size with this stack layout - the parent can decide on it's size
		return null;
	}

}
